package com.yeyks.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 常见异常
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class OftenFiledException extends RuntimeException {
    private static final long serialVersionUID = 3726577021708320097L;

    private String message;

    private int code;

    public OftenFiledException(String message) {
        this.message = message;
    }

    public OftenFiledException(String message, int code) {
        this.message = message;
        this.code = code;
    }
}
